package com.acme.exceptions;

public class NotEnoughFundsException extends BankException {

	private static final long serialVersionUID = 1L;

	private double amountAllowed;
	private String account;

	public double getAmount() {
		return amountAllowed;
	}

	public String getAccount() {
		return account;
	}

	public NotEnoughFundsException(final double amount, String account) {
		this.amountAllowed = amount;
		this.account = account;
	}

	public NotEnoughFundsException(final double amount) {
		this(amount, "");
	}
}
